Revert "Bug 590959 - Set child_has_focus flag properly"
authorXan Lopez <xan@gnome.org>
Fri, 7 Aug 2009 12:39:49 +0000 (15:39 +0300)
committerXan Lopez <xan@gnome.org>
Fri, 7 Aug 2009 12:51:17 +0000 (15:51 +0300)
This reverts commit 6e0af6c25225440263792a3cbecd8f4301e3def5.

The patch seems to break focus handling in some applications, like
Epiphany.

gtk/gtknotebook.c

index a349add78677fd4c1db6221cd5cfb4d777226ebb..aa1a5ade06884a4616ad88261882b06ed8440003 100644 (file)
@@ -3094,6 +3094,8 @@ static gint
 gtk_notebook_focus_in (GtkWidget     *widget,
                       GdkEventFocus *event)
 {
+  GTK_NOTEBOOK (widget)->child_has_focus = FALSE;
+
   gtk_notebook_redraw_tabs (GTK_NOTEBOOK (widget));
   
   return FALSE;
@@ -3976,8 +3978,6 @@ gtk_notebook_set_focus_child (GtkContainer *container,
            }
        }
     }
-  else
-    notebook->child_has_focus = FALSE;
 
   GTK_CONTAINER_CLASS (gtk_notebook_parent_class)->set_focus_child (container, child);
 }